
from pylab import *

def show_img(img_arr, name):
#	imshow(img_arr)
#	show()
	imsave(name + ".png", img_arr)	

def gen_org_image(rimage, lables):
	ofs = open("test.jpg", "w")
	#for image in rimage:
	for i in xrange(len(lables)):
		image = rimage[i]
		print lables[i]
		show_img(image)
		break